
function shareTwitter(title, link) {
    var w = (screen.width - 626) / 2;
    var h = (screen.height - 436) / 2;
    var href = "http://twitter.com/share?text=" + encodeURIComponent(title) + "&url=" + encodeURIComponent(link);
    window.open(href, 'twitter', 'width=626,height=436,left=' + w + ',top=' + h + ',scrollbars=0');
    return false;
}
function shareGooglePlus(link,title) {
    var w = (screen.width - 626) / 2;
    var h = (screen.height - 436) / 2;
    var href = "https://plus.google.com/share?url=" + encodeURIComponent(link)+ "&t=" + encodeURIComponent(title);
    var a = window.open(href, 'googleplus', 'width=626,height=436,left=' + w + ',top=' + h + ',scrollbars=0');
    return false;
}
function shareFacebook(title,summary,linkShare,urlImg){
    var w = (screen.width - 626) / 2;
    var h = (screen.height - 436) / 2;
    window.open('https://www.facebook.com/sharer/sharer.php?s=100&p[title]=' + encodeURIComponent(title) + '&p[summary]=' + encodeURIComponent(summary)+
    '&p[url]=' + encodeURIComponent(linkShare)+'&p[images][0]=' + encodeURIComponent(urlImg), 'sharer', 'toolbar=0,status=0,width=626,height=436,left=' + w + ',top=' + h + ',scrollbars=0');
    return false;
    //https://www.facebook.com/sharer/sharer.php?s=100&p[title]=Title&p[summary]=summary&p[url]=www.build.server.com&p[images][0]=http%3A%2F%2Ffbrell.com%2Ff8.jpg
}